package com.itheima.strengthen.test01;

public class Staffs extends Persons {
    private String superior;

    public Staffs(String id, String name, String department, String superior) {
        super(id, name, department);
        this.superior = superior;
    }

    public Staffs(String id, String name, String department) {
        super(id, name, department);
    }

    public Staffs() {
    }

    @Override
    public void displayIdentity() {
        System.out.println(this.getDepartment() + "的：" + this.getName() + "，员工编号：" + this.getId());
        System.out.println("他的员工是" + this.superior);
    }
}
